package com.security.dao.repository;

import com.security.dao.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User,Long> {
    User findByPhoneAndPassword(String phone,String password);
    User findByUserName(String userName);

}
